package com.youkeyi.ddy.cloud.common.api.basic.hr.employee.employee;

import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.employee.dto.HrEmployeeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.employee.param.HrEmployeeCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.employee.param.HrEmployeeDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.employee.param.HrEmployeeQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.employee.param.HrEmployeeUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * HrEmployeeCloudServiceFallback
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/hr/employee/fallback")
public class HrEmployeeCloudServiceFallback implements HrEmployeeCloudService {

    @Override
    public HrEmployeeListCloudDto query(HrEmployeeQueryCloudParam param) {
        return new HrEmployeeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public HrEmployeeListCloudDto queryForBirthday(HrEmployeeQueryCloudParam param) {
        return new HrEmployeeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(HrEmployeeCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(HrEmployeeUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(HrEmployeeDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
